/**
 * Created by rockyren on 15/1/3.
 */
var administratorApp = angular.module('administratorApp', ['ngRoute', 'commonServices', 'commonDirective']);

administratorApp.config(['$routeProvider', function($routeProvider){
  var tplsUrl = 'ngApp/administrator/tpls/';
  $routeProvider
    .when('/', {
      templateUrl: tplsUrl + 'administrator-index.html',
      controller: 'administratorIndexController'
    })
    .when('/orderInfo/:orderId', {
      templateUrl: tplsUrl + 'order-info.html'
    })
    .otherwise({
      redirectTo: '/'
    })
}]);